package cz.tomasdvorak.cars.pages.signing;

import cz.tomasdvorak.cars.pages.BasePage;
import cz.tomasdvorak.cars.pages.user.RegisterUserPage;
import cz.tomasdvorak.cars.utils.Lists;
import cz.tomasdvorak.cars.wicket.components.breadcrumbs.BreadcrumbItem;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.model.ResourceModel;

import java.util.List;

public class SignInPage extends BasePage {
    public SignInPage() {
        add(new MySignInPanel("signInPanel"));
        add(new BookmarkablePageLink<RegisterUserPage>("registerPage", RegisterUserPage.class));
    }

    protected List<BreadcrumbItem> getPageBreadcrumb() throws Exception {
        return Lists.arrayList(new BreadcrumbItem(new ResourceModel("breadcrumb.login")));
    }
}
